import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Apl {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {

		ArrayList<Integer> reeks = new ArrayList<Integer>();

		FileInputStream fstream = new FileInputStream("test.txt");
		DataInputStream in = new DataInputStream(fstream);
		BufferedReader br = new BufferedReader(new InputStreamReader(in));
		String strLine;
		while ((strLine = br.readLine()) != null) {
			
			System.out.println(strLine);
			reeks.add(Integer.parseInt(strLine));
		}
		
		in.close();
	

		InsertionSort sort = new InsertionSort(reeks);
	}

}
